Aggregate<'TState, 'TCommand, 'TEvent>Type
PackageFCQRS
C#-friendly abstract base for an event-sourced aggregate. A concrete
aggregate supplies only InitialState, EntityName, HandleCommand (the
decision) and ApplyEvent (the fold); the base provides the wiring (Init).
Designed to be subclassed from C#.
Specification
Kind
Type
Members
10
Examples
0
``.ctor``Signature
Aggregate()
ApplyEventSignature
this.ApplyEvent
HandleCommandSignature
this.HandleCommand
InitSignature
this.Init
InitSignature
this.Init
Summary
| Name | Signature | Synopsis |
|---|---|---|
| ``.ctor`` | Aggregate() | No description available. |
| ApplyEvent | this.ApplyEvent | No description available. |
| HandleCommand | this.HandleCommand | No description available. |
| Init | this.Init | Register the aggregate and hand back its Factory + Handler. |
| Init | this.Init | Register the aggregate with explicit (already-resolved) snapshot and idle-passivation policies. |
| Init | this.Init | Register the aggregate with an explicit (already-resolved) snapshot policy. |
| SnapshotPolicy | this.SnapshotPolicy | Per-aggregate snapshot cadence. |
| InitialState | this.InitialState | No description available. |
| EntityName | this.EntityName | No description available. |
| PassivationPolicy | this.PassivationPolicy | Per-aggregate idle passivation. |
Parameters
| Name | Type | Description |
|---|---|---|
| arg0 | Event<'TEvent> | |
| arg1 | 'TState |
Returns
'TState
Parameters
| Name | Type | Description |
|---|---|---|
| arg0 | Command<'TCommand> | |
| arg1 | 'TState |
Returns
EventAction<'TEvent>
Register the aggregate and hand back its Factory + Handler.
Parameters
| Name | Type | Description |
|---|---|---|
| actorApi | IActor |
Returns
AggregateRefs<'TCommand, 'TEvent>
Register the aggregate with explicit (already-resolved) snapshot and
idle-passivation policies.
Parameters
| Name | Type | Description |
|---|---|---|
| actorApi | IActor | |
| snapshotPolicy | SnapshotPolicy | |
| passivationPolicy | PassivationPolicy |
Returns
AggregateRefs<'TCommand, 'TEvent>
Register the aggregate with an explicit (already-resolved) snapshot policy.
Parameters
| Name | Type | Description |
|---|---|---|
| actorApi | IActor | |
| snapshotPolicy | SnapshotPolicy |
Returns
AggregateRefs<'TCommand, 'TEvent>
Per-aggregate snapshot cadence. Override to use Every(n) or NoSnapshots;
the default falls back to config:akka:persistence:snapshot-version-count (or 30).
Returns
SnapshotPolicy